class MyPlugin {
  constructor() {}

  apply(compiler) {
    console.log("插件被调用了");
    compiler.hooks.done.tap("myPlugin", function (compilation) {
      console.log("编译完成");
    });
  }
}
module.exports = MyPlugin;
